import store from '@/store'
export const checkPermission = {
  methods: {
    checkPermission(key) {
      return store.state.user.userInfo.roles.points.indexOf(key) === -1
    }
  }
}
